<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, shrink-to-fit=no,user-scalable=0">
  <link rel="icon" href="<%= BASE_URL %>favicon.ico">
  <title>互联互通</title>
  <script>
    const baseSize = 100;
    (function (doc, win) {
      var docEl = doc.documentElement,
        // 手机旋转事件,大部分手机浏览器都支持 onorientationchange 如果不支持，可以使用原始的 resize
        resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
        recalc = function () {
          //clientWidth: 获取对象可见内容的宽度，不包括滚动条，不包括边框
          var clientWidth = docEl.clientWidth;
          if (!clientWidth) return;
          docEl.style.fontSize = baseSize * (clientWidth / 1080) + 'px';
        };
      recalc();
      //判断是否支持监听事件 ，不支持则停止
      if (!doc.addEventListener) return;
      //注册翻转事件
      win.addEventListener(resizeEvt, recalc, false);
    })(document, window);
  </script>
</head>

<body>
  <noscript>
    <strong>We're sorry but vdeyang doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
  </noscript>
  <div id="app"></div>
  <!-- built files will be auto injected -->
</body>

</html>